package com.chuanyekeji.aokai;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.support.SpringBootServletInitializer;
import org.springframework.web.bind.annotation.CrossOrigin;
import java.util.HashMap;
import java.util.Map;

@CrossOrigin(origins = "*",maxAge = 3600)
@MapperScan(basePackages = {"com.chuanyekeji.aokai.Mapper"})
@SpringBootApplication
public class AokaiApplication extends SpringBootServletInitializer {

	public static Map<String,String> language = new HashMap<>();



	public static void main(String[] args) {
		SpringApplication.run(AokaiApplication.class, args);
	}

	@Override
	protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
		return builder.sources(AokaiApplication.class);
	}

}

